import com.baomidou.mybatisplus.MybatisConfiguration;
import com.guigu.ssm.config.SpringConfig;
import com.guigu.ssm.serivce.StudentService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {SpringConfig.class, MybatisConfiguration.class})
public class Demo {
    @Autowired
    StudentService studentService;

    @Test
    public void t1(){
        studentService.findStuLimit(1,5);
    }
}
